<template>
	<div class="alertBox" v-show="alertBoxVisible">
		<slot></slot>
	</div>
</template>
<script>
export default {
	name: "AlertBox",
	props: {
		alertBoxVisible: {
			type: Boolean,
			default: false,
		},
	},
	data() {
		return {};
	},
	created() {},
	mounted() {},
	methods: {},
};
</script>
<style lang="less" scoped>
.alertBox {
	width: 103%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	position: fixed;
	top: 0;
	left: 0;
	overflow: auto;
	/*
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	*/
	z-index: 999;
	.contentBox {
		width: 55%;
		margin: 4vh auto 50px;
		/*
		height: 59%;
		max-height: 88%;
		*/
		background: #ffffff;
		box-shadow: 0 15px 15px rgba(0, 0, 0, 0.1);
		/*
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		*/
		.contentBox_header {
			width: 100%;
			height: 68px;
			padding: 20px;
			box-sizing: border-box;
			border-bottom: 1px solid #eee;
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			align-items: center;
			p {
				font-size: 20px;
				padding: 0;
				margin: 0;
				line-height: 1;
				color: #404040;
			}
			.wj-icon-guanbi {
				font-size: 18px;
				color: #404040;
			}
			.wj-icon-guanbi:hover {
				cursor: pointer;
			}
		}
		.contentBox_body_wrap{
			display: flex;
			flex-direction: row;
			justify-content: flex-start;
			align-items: flex-start;
			flex-wrap: wrap;
		}
		.contentBox_body {
			width: 100%;
			height: calc(100% - 68px - 68px);
			padding: 12px 20px;
			box-sizing: border-box;
			overflow: hidden;

			/*批量导入报错日志信息*/
			.importTerminalErrorLog{
				width: 103%;
				max-height: 420px;
				overflow-y: scroll;
				.infoRow_details {
					width: 100%;
					height: 48px;
					margin: 3px 0;
					box-sizing: border-box;
					display: flex;
					flex-direction: row;
					justify-content: flex-start;
					align-items: center;
					span:first-child {
						display: inline-block;
						width: 5px;
						padding: 10px 0;
						margin: 0 18px;
						text-align: center;
						background: #eee;
					}
					span:last-child {
						display: inline-block;
						width: calc(100% - 5px - 36px);
						overflow: hidden;
						text-overflow: ellipsis;
						white-space: nowrap;
					}
				}
			}

			/*单选框*/
			/deep/ .el-radio {
				font-size: 16px;
				.el-radio__label {
					font-size: 16px;
				}
			}

			/*表单输入样式*/
			/* 图片上传 */
			.infoRow_form_img {
				width: 100%;
				height: 160px;
				margin: 12px 0;
				box-sizing: border-box;
				display: flex;
				flex-direction: row;
				justify-content: flex-start;
				align-items: center;
				span {
					font-size: 16px;
					display: inline-block;
					margin: 0 24px;
					min-width: 88px;
				}
				.form-span {
					margin: 0;
				}
				.form-item {
					width: 76%;
					height: 100%;
					font-size: 16px;
					display: flex;
					flex-direction: row;
					justify-content: flex-start;
					align-items: center;

					/deep/ .el-select {
						width: 100%;
					}

					/deep/ .el-upload-list__item .thumbnailImg{
						width: 100%;
						height: 100%;
					}
					/deep/ .wj-button-reset{
						padding: 8px 12px;
						font-size: 14px;
						margin-left: 12px;
					}

				}
				.form-hint {
					width: 48%;
					height: 40px;
					margin-left: 18px;
					font-size: 14px;
					color: #363636;
					display: flex;
					flex-direction: row;
					justify-content: flex-start;
					align-items: center;
				}
			}
			/*input  输入框*/
			.infoRow_form {
				width: 100%;
				height: 48px;
				margin: 12px 0;
				box-sizing: border-box;
				display: flex;
				flex-direction: row;
				justify-content: flex-start;
				align-items: center;
				span {
					font-size: 16px;
					display: inline-block;
					margin: 0 24px;
					min-width: 88px;
				}
				.form-span {
					margin: 0;
				}
				.form-item {
					width: 36%;
					height: 100%;
					font-size: 16px;
					display: flex;
					flex-direction: row;
					justify-content: flex-start;
					align-items: center;

					/deep/ .el-select {
						width: 100%;
					}
				}
				.form-hint {
					width: 48%;
					height: 40px;
					margin-left: 18px;
					font-size: 14px;
					color: #363636;
					display: flex;
					flex-direction: row;
					justify-content: flex-start;
					align-items: center;
				}
			}
			/*input 弹窗两行显示*/
			.infoRow_form_wrap {
				width: 50%;
				height: 48px;
				margin: 6px 0;
				box-sizing: border-box;
				display: flex;
				flex-direction: row;
				justify-content: flex-start;
				align-items: center;
				span {
					font-size: 16px;
					display: inline-block;
					margin: 0 24px;
					width: 120px;
					max-width: 310px;
				}
				.form-span {
					margin: 0;
				}
				.form-item {
					width: 66%;
					height: 100%;
					font-size: 16px;
					display: flex;
					flex-direction: row;
					justify-content: flex-start;
					align-items: center;

					/deep/ .el-select {
						width: 100%;
					}
				}
				.form-hint {
					width: 48%;
					height: 40px;
					margin-left: 18px;
					font-size: 14px;
					color: #363636;
					display: flex;
					flex-direction: row;
					justify-content: flex-start;
					align-items: center;
				}
			}
			/*input 弹窗两行显示 所需要的小标题*/
			.infoRow_form_wrap_small_title{
				width: 100%;
				height: 28px;
				line-height: 28px;
				margin: 6px 0;
				box-sizing: border-box;
				font-size: 18px;
				color: #606266;
				letter-spacing: 1px;
			}
			/*input  文本域*/
			.infoRow_form_textarea {
				width: 100%;
				height: 120px;
				margin: 24px 0;
				box-sizing: border-box;
				display: flex;
				flex-direction: row;
				justify-content: flex-start;
				align-items: flex-start;
				span {
					font-size: 16px;
					display: inline-block;
					margin: 0 24px;
					min-width: 88px;
				}
				.form-textarea {
					width: 62%;
					height: 100%;
					display: flex;
					flex-direction: row;
					justify-content: flex-start;
					align-items: center;
					/deep/ .el-textarea {
						width: 100%;
						height: 100%;
						.tip_msg {
							top: 120px;
						}
					}
					/deep/ .el-textarea__inner {
						width: 100%;
						height: 100%;
					}
				}
			}
			/*授权菜单  复选框*/
			.infoRow_form_menu {
				width: 100%;
				height: 120px;
				margin: 24px 0;
				box-sizing: border-box;
				display: flex;
				flex-direction: row;
				justify-content: flex-start;
				align-items: flex-start;
				span {
					font-size: 16px;
					display: inline-block;
					margin: 0 24px;
					min-width: 88px;
				}
				.form-menu {
					width: 62%;
					height: 100%;
					display: flex;
					flex-direction: row;
					justify-content: flex-start;
					flex-wrap: wrap;
					align-items: flex-start;
				}
			}
			/*input  两行*/
			.infoRow_form_twice {
				width: 100%;
				height: 120px;
				margin: 24px 0;
				box-sizing: border-box;
				display: flex;
				flex-direction: row;
				justify-content: flex-start;
				align-items: center;
				span {
					font-size: 16px;
					display: inline-block;
					margin: 0 24px;
					min-width: 88px;
				}
				.form-item-twice {
					width: 36%;
					height: 100%;
					display: flex;
					flex-direction: column;
					justify-content: space-around;
					align-items: flex-start;
					.form-item-twice-row {
						width: 100%;
						display: flex;
						flex-direction: row;
						justify-content: flex-start;
						align-items: center;
						span {
							font-size: 16px;
							display: inline-block;
							margin: 0 12px 0 0;
							min-width: 88px;
						}
						.form-item-twice-input {
							width: calc(100% - 88px);
							display: flex;
							flex-direction: row;
							justify-content: flex-start;
							align-items: center;
						}
					}
				}
				.form-item-twice-hint {
					width: 48%;
					height: 40px;
					margin-left: 18px;
					font-size: 14px;
					color: #363636;
					display: flex;
					flex-direction: row;
					justify-content: flex-start;
					align-items: center;
				}
			}

			/*数据显示样式*/
			.infoRow_details {
				width: 100%;
				height: 48px;
				margin: 3px 0;
				box-sizing: border-box;
				display: flex;
				flex-direction: row;
				justify-content: flex-start;
				align-items: center;
				span:first-child {
					display: inline-block;
					width: 120px;
					padding: 12px;
					margin: 0 18px;
					text-align: center;
					background: #eee;
				}
				span:last-child {
					display: inline-block;
					width: calc(100% - 120px - 24px - 36px);
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: nowrap;
				}
				span.infoRow_details-span {
					color: #66b1ff;
				}
			}

			/*tab切换样式*/
			.tabIndex {
				width: 100%;
				height: 48px;
				display: flex;
				flex-direction: row;
				justify-content: flex-start;
				align-items: center;
				div {
					width: 16.66%;
					height: 36px;
					font-size: 14px;
					line-height: 36px;
					border: 1px solid #d8d8d8;
					border-right: none;
					background: #f2f2f2;
					color: #82b808;
					text-align: center;
					display: flex;
					flex-direction: row;
					justify-content: center;
					align-items: center;
					span {
						display: inline-block;
						height: 18px;
						line-height: 18px;
					}
					span:first-child {
						margin-right: 12px;
					}
					span.tabNumber {
						border: 1px solid #d8d8d8;
						padding: 2px 4px;
						text-align: center;
					}
				}
				div:last-child {
					border-right: 1px solid #d8d8d8;
				}
				div.tabIndexActive {
					background: #fff;
					color: #333333;
				}
				div:hover {
					cursor: pointer;
				}
			}
			.tabList {
				width: 100%;
				height: calc(100% - 37px - 36px);
				box-sizing: border-box;
				padding: 12px 20px;

				/*基础信息*/
				.tabListItem {
					width: 100%;
					height: 100%;
					.tabListItemRow {
						width: 100%;
						height: 36px;
						margin-bottom: 8px;
						display: flex;
						flex-direction: row;
						justify-content: flex-start;
						align-items: center;
						span {
							display: inline-block;
							font-size: 16px;
						}
						span:first-child {
							width: 180px;
							margin: 0 18px;
							height: 36px;
							line-height: 36px;
						}
						span:last-child {
							width: calc(100% - 180px - 36px);
							height: 36px;
							line-height: 36px;
							overflow: hidden;
							text-overflow: ellipsis;
							white-space: nowrap;
						}
					}
				}
				/*基础信息-两列*/
				.tabListItem_column {
					width: 100%;
					height: 100%;
					display: flex;
					flex-direction: row;
					justify-content: flex-start;
					align-content: center;
					flex-wrap: wrap;
					.tabListItemRow_column {
						width: 50%;
						height: 36px;
						display: flex;
						flex-direction: row;
						justify-content: flex-start;
						align-items: center;
						span {
							display: inline-block;
							font-size: 16px;
						}
						span:first-child {
							width: 180px;
							margin: 0 18px;
							height: 36px;
							line-height: 36px;
						}
						span:last-child {
							width: calc(100% - 180px - 36px);
							height: 36px;
							line-height: 36px;
							overflow: hidden;
							text-overflow: ellipsis;
							white-space: nowrap;
						}
					}
				}

				/*表格信息*/
				.tabListTable {
					width: 100%;
					height: 100%;
				}

				/*成功和失败文字样式*/
				/deep/ .el-table .forbidden-row-default .cell {
					color: #db0b25;
				}
				/deep/ .el-table .forbidden-row-success .cell {
					color: #339b3d;
				}
				/deep/ .el-table .forbidden-row-await .cell {
					color: #FFA500;
				}
				/deep/ .el-table .forbidden-row-midway .cell {
					color: #2f2fda;
				}
			}
			.tabPage {
				width: 100%;
				height: 36px;
				display: flex;
				flex-direction: row;
				justify-content: flex-end;
				align-items: center;
			}

			/*升级记录步骤*/
			.infoEveryItem {
				width: 100%;
				height: 36px;
				margin: 8px 0;
				box-sizing: border-box;
				display: flex;
				flex-direction: row;
				justify-content: flex-start;
				align-items: center;
			}

			/*天周月区域*/
			.sub_time{
				width: 100%;
				height: 48px;
				display: flex;
				flex-direction: row;
				justify-content: flex-end;
				align-items: center;
				.sub_time_title{
					font-size: 16px;
					margin-right: 24px;
				}
				.sub_time_widget{
					padding-left: 0;
				}
			}
		}
		.contentBox_body::before {
			content: "";
			display: table;
		}
		.contentBox_footer {
			width: 100%;
			height: 68px;
			padding: 12px 20px;
			box-sizing: border-box;
			border-top: 1px solid #eee;
			display: flex;
			flex-direction: row;
			justify-content: flex-end;
			align-items: center;
			[class*="wj-button-"] {
				font-size: 16px;
				padding: 10px 18px;
				margin-left: 12px;
			}
		}
	}
}
</style>
